Pod::Spec.new do |s|

  s.name         = "GameSDKiOSPod"
  s.version      = "0.1.1"
  s.summary      = "Like this you can get GameSDKiOSPod."
  s.description  = "This is a GameSDKiOSPod for Third Login easy to user"
  s.homepage     = "https://gitee.com/aibaizai/GameSDKiOSPod"
  s.license      = "MIT"
  s.author             = { "zhubinfeng" => "zhubin_feng@163.com" }
  s.platform     = :ios
  s.source       = { :git => "https://gitee.com/aibaizai/GameSDKiOSPod.git", :tag => "#{s.version}" }
  s.resource  = "GameSDKiOSPod/LTResource.bundle"
  s.default_subspecs = 'LTGameSDK'
  s.framework  = "Foundation", "UIKit"

      s.subspec 'LTGameSDK' do |sp|
        sp.vendored_frameworks = 'GameSDKiOSPod/LTGameSDK.framework'
        sp.source_files  = "GameSDKiOSPod/LTGameSDK.framework/Headers/*.{h}"
      end

      s.subspec 'LTSDKPlatforms' do |sp|

        # Facebook
        sp.subspec 'Facebook' do |ssp|
          ssp.vendored_frameworks = 'GameSDKiOSPod/Support/PlatformSDK/FacebookSDK/FBSDKCoreKit.framework','GameSDKiOSPod/Support/PlatformSDK/FacebookSDK/FBSDKLoginKit.framework','GameSDKiOSPod/Support/PlatformSDK/FacebookSDK/LTPlatformFacebook.framework'
          ssp.frameworks = 'Accelerate'
          ssp.libraries = "c++"
        end

        # Google
        sp.subspec 'Google' do |ssp|
          ssp.vendored_frameworks = 'GameSDKiOSPod/Support/PlatformSDK/GoogleSDK/GoogleSignIn.framework','GameSDKiOSPod/Support/PlatformSDK/GoogleSDK/GoogleSignInDependencies.framework','GameSDKiOSPod/Support/PlatformSDK/GoogleSDK/LTPlatformGoogle.framework'
          ssp.resources = 'GameSDKiOSPod/Support/PlatformSDK/GoogleSDK/GoogleSignIn.bundle'
          ssp.frameworks = 'LocalAuthentication','SafariServices','SystemConfiguration','AuthenticationServices'
        end

      end

end
